package com.bullsora.kindlerss.business;

import com.bullsora.kindlerss.model.FeedEntry;
import com.bullsora.kindlerss.model.FeedUrl;
import org.springframework.roo.addon.layers.service.RooService;

import java.util.Date;
import java.util.List;

@RooService(domainTypes = {com.bullsora.kindlerss.model.Feed.class})
public interface FeedService {
  
  public boolean existsEntryForFeedUrlWithLink(FeedUrl feedUrl, String link);

  List<FeedEntry> findNewEntriesForUrl(Date since, FeedUrl url);

  void removeFeedEntriesReceivedBefore(int daysThreshold);
}
